package com.atguigu.orderservice.client;

import com.atguigu.commonutils.vo.CourseWebVoForPay;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-edu")//要调用微服务的名字
public interface EduClient {
    //查询课程信息，远程调用
    @GetMapping("/eduservice/courseapi/getCourseInfoForOrder/{courseId}")
    public CourseWebVoForPay getCourseInfoForOrder(
            @PathVariable("courseId")String courseId
    );
}
